import { getToken } from '@/utils/auth'
export default {
  data() {
    return {
      formKey: null
    }
  },
  computed: {
    getUploadHeader() {
      return {
        Authorization: 'Bearer ' + getToken()
      }
    },
    getUploadUrl() {
      return `${process.env.VUE_APP_API_ROOT}/user/file/upload`
    },
    getUserInfo() {
      try {
        return JSON.parse(this.$store.getters['user/userInfo'])
      } catch (e) {
        return {}
      }
    }
  },
  created() {
    this.formKey = this.$route.query.key
  },
  mounted() {},
  methods: {}
}
